﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FlowList.ascx.cs" Inherits="Admin_LCAFlow_Controls_FlowList" %>
<%@ Register Namespace="LCA.Web.Controls" TagPrefix="lca" %>
<asp:PlaceHolder ID="plhRecordCount" runat="server">
    <div class="record-count">
        Total number of records found:
        <div class="box">
            <asp:Literal ID="litRecordCount" runat="server"></asp:Literal></div>
    </div>
</asp:PlaceHolder>
<asp:PlaceHolder ID="plhResult" runat="server">
    <asp:PlaceHolder ID="plhCheckAll" runat="server">
        <div class="panelCheckAll">
            <asp:CheckBox ID="chkSelectAll" runat="server" ClientIDMode="Static"/>Select/Deselect All</div>
    </asp:PlaceHolder>
    <asp:GridView ID="grdData" CssClass="searchData pure-table" runat="server" DataKeyNames="Id"
        AutoGenerateColumns="False" CellPadding="2" OnSorting="grdData_Sorting" AllowSorting="true"
        OnRowDataBound="grdData_RowDataBound" OnRowCommand="grdData_RowCommand" OnRowEditing="grdData_RowEditing"
        OnRowDeleting="grdData_RowDeleting" ClientIDMode="Static">
        <HeaderStyle CssClass="header" VerticalAlign="Top" HorizontalAlign="Center" />
        <RowStyle CssClass="row0" VerticalAlign="Top" />
        <AlternatingRowStyle CssClass="row1" VerticalAlign="Top" />
        <PagerSettings Visible="True" />
        <Columns>
            <asp:TemplateField>
                <ItemStyle CssClass="check" HorizontalAlign="Center" />
                <ItemTemplate>
                    <asp:CheckBox ID="chkSelect" CssClass="chkSelect" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="Name" DataField="Name" SortExpression="Name" />
            <asp:TemplateField ItemStyle-Width="250">
                <ItemTemplate>
                    <asp:Button ID="btnEdit" CssClass="button" Width="50" runat="server" Text="Edit" CommandName="Edit" />
                    <asp:Button ID="btnDelete" CssClass="button" Width="50" runat="server" Text="Delete" CommandName="Delete" OnClientClick="return confirmDelete(this);" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <lca:GridViewSortExtender ID="grdSortExtender" ExtendeeID="grdData" runat="server"
        DefaultSortExpression="Name" AscendingImageUrl="~/Admin/Images/sort_asc.gif"
        DescendingImageUrl="~/Admin/Images/sort_desc.gif">
    </lca:GridViewSortExtender>
</asp:PlaceHolder>
<asp:PlaceHolder ID="plhNoResult" runat="server" Visible="false">
    <asp:Label ID="lblNoResult" runat="server">0 records found.</asp:Label>
</asp:PlaceHolder>
<script type="text/javascript" src="/Admin/Scripts/LCA/flow_list.js">
</script>
